﻿using SimpleNugetServer.Models;
using System;
using System.Collections.Generic;
using System.IO;

namespace SimpleNugetServer
{
    public interface INugetPackageSource : IDisposable
    {
        NugetPackageSource LoadPackages();
        IEnumerable<Nuspec> Find(QueryParameters parameters);
        Nuspec FindPackagesById(string id, string version);
        IEnumerable<Nuspec> FindPackagesById(string id);
        void PutPackage(string apiKey, Stream fileStream);

    }
}
